<template>
  <el-dialog :model-value="searchObj.dialogVisible" width="80%" append-to-body top="10vh"
    :close-on-click-modal="false" @closed="closeDialog">
    <el-row :gutter="10" align="middle">
      <el-col :span="8">
        <el-row align="middle">
          <el-col :span="4">物料名称:</el-col>
          <el-col :span="20">
            <el-input v-model="searchObj.skuName" placeholder="请输入物料名称" clearable/>
          </el-col>
        </el-row>
      </el-col>
      <el-col :span="8">
        <el-row align="middle">
          <el-col :span="4">物料编码:</el-col>
          <el-col :span="20">
            <el-input v-model="searchObj.barCode" placeholder="请输入物料编码" clearable/>
          </el-col>
        </el-row>
      </el-col>
      <!-- <el-col :span="7">
        <el-row align="middle">
          <el-col :span="4">规格型号:</el-col>
          <el-col :span="20">
            <el-input v-model.trim="searchObj.specification" placeholder="请输入规格型号" clearable/>
          </el-col>
        </el-row>
      </el-col> -->
      <!-- <el-col :span="2">
        <el-button type="primary" size="small" @click="getGoodsList">查询</el-button>
      </el-col> -->
    </el-row>
    <zlrt-table :p="ctx">
      <template #operation="scope">
        <el-button type="primary" link size="small"
          @click="ctx.other.showEdit(scope.row)">
          确定
        </el-button>
      </template>
    </zlrt-table>
  </el-dialog>
</template>

<script lang="ts" src="./goodsChange" />·

<style lang="scss" scoped>
.el-row {
  margin-bottom: 5px;
}
</style>
